# !/usr/bin/env python
# -*- coding: utf-8 -*-

# 散点图
# https://blog.csdn.net/qq_40491534/article/details/121519566

if __name__ == '__main__':
    import matplotlib.pyplot as plt
    import numpy as np

    # 第一组散点
    x = np.array([1, 2, 3, 4, 5, 6, 7, 8])
    y = np.array([1, 4, 9, 16, 7, 11, 23, 18])
    plt.scatter(x, y)  # x 代表x轴 y 代表y轴数据, 数据维度必须相同
    plt.show()